{#include file="admin_header.htm"#}
<script type="text/javascript" src="js/selectAll.js"></script>
<script type="text/javascript" src="js/is_show.js"></script>
<script  type='text/javascript' src="js/openlayer.js" language="javascript"></script>
<div class="admin_main_nr_dbox">
  <table width="700" border="0" cellspacing="8" cellpadding="0" class="link_lan">
    <tr>
      <td width="97" height="22" align="center" background="images/article_category_bg.jpg" style="background-repeat:no-repeat">時間範圍</td>
      <td>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $dateline eq ''#}background-color: #DFEDF7{#/if#}"><a href="?act=company_list">不限時間</a></div>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $dateline==30#}background-color: #DFEDF7{#/if#}"><a href="?dateline=30">本月新增</a></div>
<div class="clear"></div></td>
    </tr> 
    <tr>
      <td width="97" height="22" align="center" background="images/article_category_bg.jpg" style="background-repeat:no-repeat">認證狀態</td>
      <td>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $audit eq ""#}background-color: #DFEDF7{#/if#}"><a href="?act=company_list&audit=&recommend={#$recommend#}">不限</a></div>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $audit==1#}background-color: #DFEDF7{#/if#}"><a href="?act=company_list&audit=1&recommend={#$recommend#}">認證通過</a></div>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $audit==2#}background-color: #DFEDF7{#/if#}"><a href="?act=company_list&audit=2&recommend={#$recommend#}">等待認證</a></div>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $audit==3#}background-color: #DFEDF7{#/if#}"><a href="?act=company_list&audit=3&recommend={#$recommend#}">認證未通過</a></div>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $audit=="0"#}background-color: #DFEDF7{#/if#}"><a href="?act=company_list&audit=0&recommend={#$recommend#}">未認證</a></div>
<div class="clear"></div></td>
    </tr>
	   <tr style="display:none;">
      <td width="97" height="22" align="center" background="images/article_category_bg.jpg" style="background-repeat:no-repeat">是否推薦</td>
      <td>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $recommend eq ""#}background-color: #DFEDF7{#/if#}"><a href="?act=company_list&audit={#$audit#}&recommend=">不限</a></div>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $recommend=="0"#}background-color: #DFEDF7{#/if#}"><a href="?act=company_list&audit={#$audit#}&recommend=0">普通企業</a></div>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $recommend=="1"#}background-color: #DFEDF7{#/if#}"><a href="?act=company_list&audit={#$audit#}&recommend=1">推薦企業</a></div>
<div class="clear"></div></td>
    </tr>
  </table>
  <table width="700" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><table width="150" border="0" cellspacing="2" cellpadding="0">
          <form action="?act=company_list" method="post" name="form3" id="form3">
            <tr>
              <td width="41">每頁：</td>
              <td width="20"><input name="perpage" type="text" id="perpage"  style="width:30px; height:15px; color:#666666; border:1px #97ADCE solid; text-align:center"  onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" value="{#$perpage#}" maxlength="3"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/></td>
              <td width="81"><input  style="font-family:Arial; font-size:10px; height:22px;" type="submit" name="Submitok"  value="OK" /></td>
            </tr>
          </form>
      </table></td>
      <td width="61%"><table width="300"  border="0" align="right" cellpadding="0" cellspacing="2">
          <form action="?act=company_list" method="post" name="form2" id="form2">
            <tr>
              <td width="112" align="right">&nbsp;</td>
              <td width="130"><input name="key" type="text" id="key" style=" width:130px; height:15px; font-size:12px; background-image:url(images/zoom.png); background-repeat:no-repeat; padding-left:18px;" value="{#$key#}" maxlength="6" /></td>
              <td width="50"><input name="Submit4" type="submit"  value="搜索" style="height:24px; width:50px; font-size:12px;" /></td>
            </tr>
          </form>
      </table></td>
    </tr>
  </table>
  <form id="form1" name="form1" method="post" action="?act=company_perform">
  <table width="700" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
      <td width="25" height="26" align="center" bgcolor="#D0E2F7" >
      <input type="checkbox" name="chkAll" title="全選/反選" onClick="selectAll()"/>	  </td>
      <td bgcolor="#D0E2F7" style="padding-left:15px;">企業名稱</td>
      <td width="80" align="center"  bgcolor="#D0E2F7">認證狀態</td>
      <td width="80" align="center"  bgcolor="#D0E2F7">是否推薦</td>
      <td width="120" align="center"  bgcolor="#D0E2F7">所屬會員</td>
      <td width="70" align="center" bgcolor="#D0E2F7"  >創建時間</td>
      <td width="50" align="center" bgcolor="#D0E2F7"  >操作</td>
    </tr>
  </table>
    <table width="700" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="link_lan">
      {#section name=list loop=$list#}
      <tr class="row">
      <td width="27" align="center" style="border-bottom:1px #CCCCCC solid; padding-left:2px;">
        <input name="y_id[]" type="checkbox" id="y_id" value="{#$list[list].uid#}"  onclick="javascript:chkRow(this);"/>      </td>
        <td height="34" style="border-bottom:1px #CCCCCC solid"><a href="{#$list[list].company_url#}" target="_blank">{#$list[list].companyname#}</a></td>
        <td width="80" align="center" style="border-bottom:1px #CCCCCC solid">{#$list[list].audit#}</td>
        <td width="80" align="center" style="border-bottom:1px #CCCCCC solid">
		{#if $list[list].recommend=="0"#}
		普通
		{#else#}
		<span  style="color: #CC6600">推薦</span>
		{#/if#}	
		</td>
        <td width="120" align="center" style="border-bottom:1px #CCCCCC solid">{#$list[list].user.username#}</td>
        <td width="70" align="center" style="border-bottom:1px #CCCCCC solid">{#$list[list].addtime|date_format:"%Y-%m-%d"#}</td>
        <td width="50" align="center" style="border-bottom:1px #CCCCCC solid"><a href="?act=edit_company_profile&id={#$list[list].id#}">修改</a></td>
      </tr>
      {#sectionelse#}
  <tr>
    <td height="50" colspan="9" align="center">沒有任何記錄！</td>
  </tr>
      {#/section#}
    </table>
	{#if $list#}
	<table width="700" border="0" cellspacing="0" cellpadding="0" >
      <tr>
        <td height="60">
          <input type="submit" name="audit1" value="認證通過" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'"/>
<!--          &nbsp;&nbsp;
          <input name="audit2" type="submit" class="Qishi_submit_a" id="perform1" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="等待認證"/> -->
          &nbsp;&nbsp;
          <input name="audit3" type="submit" class="Qishi_submit_a" id="perform2" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="認證未通過"/>
      
		 &nbsp;&nbsp;
		<input type="button" name="open" value="刪除企業" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" onclick="openLayer('op1','tis')"/>		</td>
		
      </tr>
    </table>
	<span id="op1"></span>
	{#/if#}
  </form>
  <!--彈出層的內容-->
<div id="tis" style="display: none" >
<div style="width:480px; height:230px;">
<div style="width:480px; background-color: #F9FCFD; height:25px;" onmouseover="Drag(this)"   onmousedown="StartDrag(this)" onmouseup="StopDrag(this)">
<div style="height:25px; width:25px; float:right; cursor:pointer">
<img src="images/close.gif" width="25" height="25"  onclick="closeLayer()"/>
</div>
<div class="clear"></div>
</div>
  <table width="400" border="0" align="center" cellpadding="0" cellspacing="6" >
    <tr>
      <td height="30" colspan="2"><strong  style="color:#0066CC; font-size:14px;">你確定要刪除嗎？</strong></td>
      </tr>
    <tr>
      <td width="89" height="25">&nbsp;</td>
      <td width="293"><label>
        <input name="delete_company" type="checkbox" id="delete_company" value="yes" checked="checked" />
        刪除企業資料</label></td>
    </tr>
	<tr>
      <td width="89" height="25">&nbsp;</td>
      <td width="293"><label>
        <input name="delete_jobs" type="checkbox" id="delete_jobs" value="yes" />
        刪除此企業發布的招聘信息</label></td>
    </tr>
  </table>
  <table width="350" border="0" align="center" cellpadding="0" cellspacing="6" >
    <tr>
      <td height="60" colspan="2" align="center" style="border-top: 1px #A3C7DA solid;"><input type="submit" name="delete" value="確定刪除" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="button" name="revocation" value="撤銷刪除" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" onclick="closeLayer()"/></td>
      </tr>
  </table>
</div>
</div>
<!--彈出層的內容結束-->
	    <table width="700" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table border="0" align="center" cellpadding="0" cellspacing="0" class="link_page">
          <tr>
            <td height="40" align="center" >{#$page#}</td>
          </tr>
        </table></td>
      </tr>
    </table>
</div>
{#include file="admin_footer.htm"#}
</body>
</html>
